home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -in_the_mag- / workbench / adf / transadf / zlib / dmakefile
Makefile  |  2000-03-05  |  3KB  |  90 lines

  1. # This can be used to create "zsr.lib", which is required to
  2. # compile TransADF.  Simply copy this DMakeFile into the directory
  3. # where the ZLib sources have been installed and type 'dmake'.
  4.  
  5. CC     = dcc
  6.  
  7. SFLAGS = -ms -r -pr
  8. RFLAGS = -mRR -mi
  9. PFLAGS = -prof -mi0
  10.  
  11. CFLAGS = -proto $(SFLAGS) $(RFLAGS)
  12. DFLAGS = -v -s
  13.  
  14.  
  15. LIB    = zsr.lib
  16.  
  17. DINC   = dinclude:pd/
  18. DLIB   = dlib:
  19.  
  20.  
  21. OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
  22.        zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o inffast.o
  23.  
  24.  
  25. $(LIB): $(OBJS)
  26.     Join $(OBJS) AS %(left)
  27.  
  28. example: example.o $(LIB)
  29.     $(CC) $(DFLAGS) $(CFLAGS) -lz -o %(left) example.o $(LIB)
  30.  
  31. minigzip: minigzip.o $(LIB)
  32.     $(CC) $(DFLAGS) $(CFLAGS) -lz -o %(left) minigzip.o $(LIB)
  33.  
  34. install: $(LIB)
  35.     copy zlib.h zconf.h $(DINC) CLONE
  36.     copy $(LIB) $(DLIB) CLONE
  37.  
  38. clean:
  39.     -delete $(OBJS) example minigzip $(LIB) foo.gz FORCE QUIET
  40.  
  41.  
  42. ## Objects
  43. adler32.o: zutil.h zlib.h zconf.h adler32.c
  44.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) adler32.c
  45.  
  46. compress.o: zlib.h zconf.h compress.c
  47.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) compress.c
  48.  
  49. crc32.o: zutil.h zlib.h zconf.h crc32.c
  50.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) crc32.c
  51.  
  52. deflate.o: deflate.h zutil.h zlib.h zconf.h deflate.c
  53.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) deflate.c
  54.  
  55. example.o: zlib.h zconf.h example.c
  56.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) example.c
  57.  
  58. gzio.o: zutil.h zlib.h zconf.h gzio.c
  59.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) gzio.c
  60.  
  61. infblock.o: zutil.h zlib.h zconf.h infblock.h inftrees.h infcodes.h infutil.h infblock.c
  62.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) infblock.c
  63.  
  64. infcodes.o: zutil.h zlib.h zconf.h inftrees.h infutil.h infcodes.h inffast.h infcodes.c
  65.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) infcodes.c
  66.  
  67. inffast.o: zutil.h zlib.h zconf.h inftrees.h infutil.h inffast.h inffast.c
  68.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) inffast.c
  69.  
  70. inflate.o: zutil.h zlib.h zconf.h infblock.h inflate.c
  71.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) inflate.c
  72.  
  73. inftrees.o: zutil.h zlib.h zconf.h inftrees.h inftrees.c
  74.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) inftrees.c
  75.  
  76. infutil.o: zutil.h zlib.h zconf.h inftrees.h infutil.h infutil.c
  77.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) infutil.c
  78.  
  79. minigzip.o: zlib.h zconf.h minigzip.c
  80.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) minigzip.c
  81.  
  82. trees.o: deflate.h zutil.h zlib.h zconf.h trees.c
  83.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) trees.c
  84.  
  85. uncompr.o: zlib.h zconf.h uncompr.c
  86.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) uncompr.c
  87.  
  88. zutil.o: zutil.h zlib.h zconf.h zutil.c
  89.     $(CC) $(DFLAGS) $(CFLAGS) -c -o %(left) zutil.c
  90.